<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
    <base href="<%=basePath%>">
<form id="pagerForm" method="post" action="demo_page1.html">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/back/admins/showAdmins.htm" method="post">
	<div class="searchBar">
		<!--<ul class="searchContent">
			<li>
				<label>我的客户：</label>
				<input type="text"/>
			</li>
			<li>
			<select class="combox" name="province">
				<option value="">所有省市</option>
				<option value="北京">北京</option>
				<option value="上海">上海</option>
				<option value="天津">天津</option>
				<option value="重庆">重庆</option>
				<option value="广东">广东</option>
			</select>
			</li>
		</ul>
		-->
		<table class="searchContent">
			<tr>
				<td>
					关键字：<input type="text" name="keyword" value="${requestScope.keyword}"/>
				</td>
				<td>
					<select name="status">
						<option value="">状态</option>
						<option value="1" ${requestScope.status== '1' ? 'selected' : ''}>启用</option>
						<option value="0" ${requestScope.status=='0'? 'selected': '' }>禁用</option>
					</select>
				</td>
				<td>
					创建时间：<input type="text" class="date" readonly="true" datefmt="yyyy-MM-dd HH:mm:ss" name="st"/>--->
					<input type="text" class="date" readonly="true" datefmt="yyyy-MM-dd HH:mm:ss" name="ed"/>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
						<button type="submit" >检索</button>
						</div>
					</div>
				</li>
				<li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${pageContext.request.contextPath}/back/admins/insertAadmin.htm" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="demo_page4.html?uid={sid_user}" target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="80">序号</th>
				<th width="100">邮箱</th>
				<th width="80">状态</th>
				<th width="100">真实姓名</th>
				<th width="100">电话号码</th>
				<th width="80">QQ</th>
				<th width="100">创建时间</th>
				<th width="100">修改时间</th>
				<th width="100">上次登录时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${requestScope.adminsList }" var="admin" varStatus="sta">
				<tr>
					<td >${sta.count }</td>
					<td >${admin.email }</td>
					<td >${admin.statusStr }</td>
					<td >${admin.trueName }</td>
					<td >${admin.phone }</td>
					<td >${admin.qq }</td>
					<td ><fmt:formatDate value="${admin.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td ><fmt:formatDate value="${admin.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td ><fmt:formatDate value="${admin.lastLoginTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<form action="${pageContext.request.contextPath}/back/admins/showAdmins.htm" method="post" id="adminPage" onsubmit="return navTabSearch(this);">
		<input type="hidden" name="keyword" value="${requestScope.keyword}"/>
		<input type="hidden" name="status" value="${requestScope.status}"/>
		
		<div class="panelBar">
			<div class="pages">
				<a href="" class="button" onclick="return AadminsCheckPage('adminPage','adminscurrentPage','1','adminspageSize','${requestScope.pageInfoUtil.pageSize}')"><span>首页</span></a>
				<a href="" class="button" onclick="return AadminsCheckPage('adminPage','adminscurrentPage','${requestScope.pageInfoUtil.prePage}','adminspageSize','${requestScope.pageInfoUtil.pageSize}')"><span>上一页</span></a>
				<a href="" class="button" onclick="return AadminsCheckPage('adminPage','adminscurrentPage','${requestScope.pageInfoUtil.nextPage}','adminspageSize','${requestScope.pageInfoUtil.pageSize}')"><span>下一页</span></a>
				<a href="" class="button" onclick="return AadminsCheckPage('adminPage','adminscurrentPage','${requestScope.pageInfoUtil.totalPage}','adminspageSize','${requestScope.pageInfoUtil.pageSize}')"><span>尾页</span></a>
				
				共${requestScope.pageInfoUtil.currentPage }/${requestScope.pageInfoUtil.totalPage }页
				共${requestScope.pageInfoUtil.totalRecord }条
				<input type="text" name="currentPage" id="adminscurrentPage" size="5" value="${requestScope.pageInfoUtil.currentPage}"/>
				<input type="text" name="pageSize" id="adminspageSize" size="5" value="${requestScope.pageInfoUtil.pageSize}"/>
				<input type="submit" value="提交" />
			</div>
	</form>
</div>

    